package com.glela.live.messages;

import com.glela.live.util.GsonUtil;

/**
 * Created by jinweiwei on 2018/3/29.
 */
public class LeaveMsg extends BaseMessage{

    private User user;

    private int showFlag=1;

    public int getShowFlag() {
        return showFlag;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private transient static final String TYPE = "XP:ZMsg";
    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, ZanMessage.class);
    }

    public LeaveMsg(User user){
        this.user = user;
    }
}
